-- GENERATED SPELL FOR [Coyote Packleader] --


function spell0_833(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_833', 625, 1)
end

function spell1_833(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_833', 20000, 1)
end

function spell2_833(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(3149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_833', 15000, 1)
end

function spell3_833(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_833', 0, 1)
end

function Sorts_833(pUnit, Event)
local choix_sorts_833 = math.random(0, 3)
if choix_sorts_833 == 0 then
pUnit:RegisterEvent('spell0_833', 1, 1)
end
if choix_sorts_833 == 1 then
pUnit:RegisterEvent('spell1_833', 1, 1)
end
if choix_sorts_833 == 2 then
pUnit:RegisterEvent('spell2_833', 1, 1)
end
if choix_sorts_833 == 3 then
pUnit:RegisterEvent('spell3_833', 1, 1)
end
end

function mob833_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_833', math.random(1500, 3000), 1)
end

function mob833_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob833_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob833_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(833, 1, 'mob833_Action')
RegisterUnitEvent(833, 2, 'mob833_Leave')
RegisterUnitEvent(833, 3, 'mob833_Kill')
RegisterUnitEvent(833, 4, 'mob833_Die')
